package Object;

public class IntrgerDemo {
    public static void main(String[] args) {
        //演示包装类的基本使用方法
        //1可以通过包装类来获取基本类型的取值范围
        int x = Integer.MAX_VALUE;
        int x1 = Integer.MIN_VALUE;
        System.out.println(x+","+x1);

        long x2 = Long.MAX_VALUE;
        long x3 = Long.MIN_VALUE;
        System.out.println(x2+","+x3);
        //2包装类可以将字符串转换成对应的基本数据类型---熟练掌握
        String s1 = "13.21";
        int age = Integer.parseInt(s1);
        System.out.println(age);

        String s2 = "123";
        double at = Double.parseDouble(s2);
        System.out.println(at);
    }
}
